<template>
  <div class="brand-row-wrapper">
    <div class="brand-box">
      <div class="left">
        <img :src="brandInfo.cover" alt />
      </div>
      <div class="right">
        <p class="name">{{ brandInfo.name }}</p>
        <p class="intro">{{brandInfo.description}}</p>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    brandInfo: {
      type: Object,
      default: () => ({})
    }
  }
}
</script>
<style lang="scss" scoped>
@import "@/styles/mixin.scss";
.brand-row-wrapper {
  width: 100%;
  .brand-box {
    width: 100%;
    height: 2.64rem;
    background: rgba(255, 255, 255, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    .left {
      width: 2.64rem;
      height: 100%;
      overflow: hidden;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .right {
      padding-left: 0.6rem;
      padding-right: 0.5rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
      flex: 1;
      .name {
        font-size: 0.3rem;
        font-family: PingFang SC;
        font-weight: 500;
        color: rgba(4, 0, 0, 1);
      }
      .intro {
        font-size: 0.22rem;
        font-family: PingFang SC;
        font-weight: 300;
        color: rgba(0, 4, 0, 1);
        line-height: 0.36rem;
        margin-top: 0.27rem;
        @include ellipsisTwo();
      }
    }
  }
}
</style>
